<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <SCRIPT TYPE="TEXT/JAVASCRIPT" SRC="../js/jquery-1.8.3.min.js"></SCRIPT>
<title>Insert title here</title>
    <script type="text/javascript">
       function test(){
            var name="id";
            var data =decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
            $("#id").val(data);

           var name="username";
           var data =decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
           $("#username").val(data);

           var name="address";
           var data =decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
           $("#address").val(data);

           var name="tel";
           var data =decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
           $("#tel").val(data);

           var name="content";
           var data =decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
           $("#content").val(data);

        }

    </script>


</head>
<body onload="test()">


<form action="update.php" method="post">
<table border="1">
	<tr bgcolor="#DDA">

		<td>Id</td>
		<td>username</td>
		<td>address</td>
		<td>tel</td>
		<td>content</td>
	</tr>
	<tr>
		<td><input id="id" type="text" name="id" value="" readonly="true"/></td>
		<td><input id="username" type="text" name="username"   value=""/></td>
		<td><input id="address" type="text" name="address"  value=""/></td>
		<td><input id="tel" type="text" name="tel"   value=""/></td>
		<td><input id="content" type="text" name="content"  value=""/></td>
	</tr>
	<tr>
		<td colspan="5" align="center"><input type="submit" value="修改" />
		</td>
	</tr>
</table>
</form>
</body>
</html>